{"ast":null,"code":"import { initMoveMotion, initSlideMotion, slideDownIn, slideDownOut, slideUpIn, slideUpOut } from '../../style/motion';\nimport { resetComponent, textEllipsis } from '../../style';\nconst genItemStyle = token => {\n  const {\n    controlPaddingHorizontal\n  } = token;\n  return {\n    position: 'relative',\n    display: 'block',\n    minHeight: token.controlHeight,\n    padding: `${(token.controlHeight - token.fontSize * token.lineHeight) / 2}px ${controlPaddingHorizontal}px`,\n    color: token.colorText,\n    fontWeight: 'normal',\n    fontSize: token.fontSize,\n    lineHeight: token.lineHeight,\n    boxSizing: 'border-box'\n  };\n};\nconst genSingleStyle = token => {\n  const {\n    antCls,\n    componentCls\n  } = token;\n  const selectItemCls = `${componentCls}-item`;\n  return [{\n    [`${componentCls}-dropdown`]: Object.assign(Object.assign({}, resetComponent(token)), {\n      position: 'absolute',\n      top: -9999,\n      zIndex: token.zIndexPopup,\n      boxSizing: 'border-box',\n      padding: token.paddingXXS,\n      overflow: 'hidden',\n      fontSize: token.fontSize,\n      // Fix select render lag of long text in chrome\n      // https://github.com/ant-design/ant-design/issues/11456\n      // https://github.com/ant-design/ant-design/issues/11843\n      fontVariant: 'initial',\n      backgroundColor: token.colorBgElevated,\n      borderRadius: token.borderRadiusLG,\n      outline: 'none',\n      boxShadow: token.boxShadowSecondary,\n      [`\n            &${antCls}-slide-up-enter${antCls}-slide-up-enter-active&-placement-bottomLeft,\n            &${antCls}-slide-up-appear${antCls}-slide-up-appear-active&-placement-bottomLeft\n          `]: {\n        animationName: slideUpIn\n      },\n      [`\n            &${antCls}-slide-up-enter${antCls}-slide-up-enter-active&-placement-topLeft,\n            &${antCls}-slide-up-appear${antCls}-slide-up-appear-active&-placement-topLeft\n          `]: {\n        animationName: slideDownIn\n      },\n      [`&${antCls}-slide-up-leave${antCls}-slide-up-leave-active&-placement-bottomLeft`]: {\n        animationName: slideUpOut\n      },\n      [`&${antCls}-slide-up-leave${antCls}-slide-up-leave-active&-placement-topLeft`]: {\n        animationName: slideDownOut\n      },\n      '&-hidden': {\n        display: 'none'\n      },\n      '&-empty': {\n        color: token.colorTextDisabled\n      },\n      // ========================= Options =========================\n      [`${selectItemCls}-empty`]: Object.assign(Object.assign({}, genItemStyle(token)), {\n        color: token.colorTextDisabled\n      }),\n      [`${selectItemCls}`]: Object.assign(Object.assign({}, genItemStyle(token)), {\n        cursor: 'pointer',\n        transition: `background ${token.motionDurationSlow} ease`,\n        borderRadius: token.borderRadiusSM,\n        // =========== Group ============\n        '&-group': {\n          color: token.colorTextDescription,\n          fontSize: token.fontSizeSM,\n          cursor: 'default'\n        },\n        // =========== Option ===========\n        '&-option': {\n          display: 'flex',\n          '&-content': Object.assign({\n            flex: 'auto'\n          }, textEllipsis),\n          '&-state': {\n            flex: 'none'\n          },\n          [`&-active:not(${selectItemCls}-option-disabled)`]: {\n            backgroundColor: token.controlItemBgHover\n          },\n          [`&-selected:not(${selectItemCls}-option-disabled)`]: {\n            color: token.colorText,\n            fontWeight: token.fontWeightStrong,\n            backgroundColor: token.controlItemBgActive,\n            [`${selectItemCls}-option-state`]: {\n              color: token.colorPrimary\n            }\n          },\n          '&-disabled': {\n            [`&${selectItemCls}-option-selected`]: {\n              backgroundColor: token.colorBgContainerDisabled\n            },\n            color: token.colorTextDisabled,\n            cursor: 'not-allowed'\n          },\n          '&-grouped': {\n            paddingInlineStart: token.controlPaddingHorizontal * 2\n          }\n        }\n      }),\n      // =========================== RTL ===========================\n      '&-rtl': {\n        direction: 'rtl'\n      }\n    })\n  },\n  // Follow code may reuse in other components\n  initSlideMotion(token, 'slide-up'), initSlideMotion(token, 'slide-down'), initMoveMotion(token, 'move-up'), initMoveMotion(token, 'move-down')];\n};\nexport default genSingleStyle;","map":{"version":3,"names":["initMoveMotion","initSlideMotion","slideDownIn","slideDownOut","slideUpIn","slideUpOut","resetComponent","textEllipsis","genItemStyle","token","controlPaddingHorizontal","position","display","minHeight","controlHeight","padding","fontSize","lineHeight","color","colorText","fontWeight","boxSizing","genSingleStyle","antCls","componentCls","selectItemCls","Object","assign","top","zIndex","zIndexPopup","paddingXXS","overflow","fontVariant","backgroundColor","colorBgElevated","borderRadius","borderRadiusLG","outline","boxShadow","boxShadowSecondary","animationName","colorTextDisabled","cursor","transition","motionDurationSlow","borderRadiusSM","colorTextDescription","fontSizeSM","flex","controlItemBgHover","fontWeightStrong","controlItemBgActive","colorPrimary","colorBgContainerDisabled","paddingInlineStart","direction"],"sources":["/data/messenger.client/node_modules/antd/es/select/style/dropdown.js"],"sourcesContent":["import { initMoveMotion, initSlideMotion, slideDownIn, slideDownOut, slideUpIn, slideUpOut } from '../../style/motion';\nimport { resetComponent, textEllipsis } from '../../style';\nconst genItemStyle = token => {\n  const {\n    controlPaddingHorizontal\n  } = token;\n  return {\n    position: 'relative',\n    display: 'block',\n    minHeight: token.controlHeight,\n    padding: `${(token.controlHeight - token.fontSize * token.lineHeight) / 2}px ${controlPaddingHorizontal}px`,\n    color: token.colorText,\n    fontWeight: 'normal',\n    fontSize: token.fontSize,\n    lineHeight: token.lineHeight,\n    boxSizing: 'border-box'\n  };\n};\nconst genSingleStyle = token => {\n  const {\n    antCls,\n    componentCls\n  } = token;\n  const selectItemCls = `${componentCls}-item`;\n  return [{\n    [`${componentCls}-dropdown`]: Object.assign(Object.assign({}, resetComponent(token)), {\n      position: 'absolute',\n      top: -9999,\n      zIndex: token.zIndexPopup,\n      boxSizing: 'border-box',\n      padding: token.paddingXXS,\n      overflow: 'hidden',\n      fontSize: token.fontSize,\n      // Fix select render lag of long text in chrome\n      // https://github.com/ant-design/ant-design/issues/11456\n      // https://github.com/ant-design/ant-design/issues/11843\n      fontVariant: 'initial',\n      backgroundColor: token.colorBgElevated,\n      borderRadius: token.borderRadiusLG,\n      outline: 'none',\n      boxShadow: token.boxShadowSecondary,\n      [`\n            &${antCls}-slide-up-enter${antCls}-slide-up-enter-active&-placement-bottomLeft,\n            &${antCls}-slide-up-appear${antCls}-slide-up-appear-active&-placement-bottomLeft\n          `]: {\n        animationName: slideUpIn\n      },\n      [`\n            &${antCls}-slide-up-enter${antCls}-slide-up-enter-active&-placement-topLeft,\n            &${antCls}-slide-up-appear${antCls}-slide-up-appear-active&-placement-topLeft\n          `]: {\n        animationName: slideDownIn\n      },\n      [`&${antCls}-slide-up-leave${antCls}-slide-up-leave-active&-placement-bottomLeft`]: {\n        animationName: slideUpOut\n      },\n      [`&${antCls}-slide-up-leave${antCls}-slide-up-leave-active&-placement-topLeft`]: {\n        animationName: slideDownOut\n      },\n      '&-hidden': {\n        display: 'none'\n      },\n      '&-empty': {\n        color: token.colorTextDisabled\n      },\n      // ========================= Options =========================\n      [`${selectItemCls}-empty`]: Object.assign(Object.assign({}, genItemStyle(token)), {\n        color: token.colorTextDisabled\n      }),\n      [`${selectItemCls}`]: Object.assign(Object.assign({}, genItemStyle(token)), {\n        cursor: 'pointer',\n        transition: `background ${token.motionDurationSlow} ease`,\n        borderRadius: token.borderRadiusSM,\n        // =========== Group ============\n        '&-group': {\n          color: token.colorTextDescription,\n          fontSize: token.fontSizeSM,\n          cursor: 'default'\n        },\n        // =========== Option ===========\n        '&-option': {\n          display: 'flex',\n          '&-content': Object.assign({\n            flex: 'auto'\n          }, textEllipsis),\n          '&-state': {\n            flex: 'none'\n          },\n          [`&-active:not(${selectItemCls}-option-disabled)`]: {\n            backgroundColor: token.controlItemBgHover\n          },\n          [`&-selected:not(${selectItemCls}-option-disabled)`]: {\n            color: token.colorText,\n            fontWeight: token.fontWeightStrong,\n            backgroundColor: token.controlItemBgActive,\n            [`${selectItemCls}-option-state`]: {\n              color: token.colorPrimary\n            }\n          },\n          '&-disabled': {\n            [`&${selectItemCls}-option-selected`]: {\n              backgroundColor: token.colorBgContainerDisabled\n            },\n            color: token.colorTextDisabled,\n            cursor: 'not-allowed'\n          },\n          '&-grouped': {\n            paddingInlineStart: token.controlPaddingHorizontal * 2\n          }\n        }\n      }),\n      // =========================== RTL ===========================\n      '&-rtl': {\n        direction: 'rtl'\n      }\n    })\n  },\n  // Follow code may reuse in other components\n  initSlideMotion(token, 'slide-up'), initSlideMotion(token, 'slide-down'), initMoveMotion(token, 'move-up'), initMoveMotion(token, 'move-down')];\n};\nexport default genSingleStyle;"],"mappings":"AAAA,SAASA,cAAc,EAAEC,eAAe,EAAEC,WAAW,EAAEC,YAAY,EAAEC,SAAS,EAAEC,UAAU,QAAQ,oBAAoB;AACtH,SAASC,cAAc,EAAEC,YAAY,QAAQ,aAAa;AAC1D,MAAMC,YAAY,GAAGC,KAAK,IAAI;EAC5B,MAAM;IACJC;EACF,CAAC,GAAGD,KAAK;EACT,OAAO;IACLE,QAAQ,EAAE,UAAU;IACpBC,OAAO,EAAE,OAAO;IAChBC,SAAS,EAAEJ,KAAK,CAACK,aAAa;IAC9BC,OAAO,EAAG,GAAE,CAACN,KAAK,CAACK,aAAa,GAAGL,KAAK,CAACO,QAAQ,GAAGP,KAAK,CAACQ,UAAU,IAAI,CAAE,MAAKP,wBAAyB,IAAG;IAC3GQ,KAAK,EAAET,KAAK,CAACU,SAAS;IACtBC,UAAU,EAAE,QAAQ;IACpBJ,QAAQ,EAAEP,KAAK,CAACO,QAAQ;IACxBC,UAAU,EAAER,KAAK,CAACQ,UAAU;IAC5BI,SAAS,EAAE;EACb,CAAC;AACH,CAAC;AACD,MAAMC,cAAc,GAAGb,KAAK,IAAI;EAC9B,MAAM;IACJc,MAAM;IACNC;EACF,CAAC,GAAGf,KAAK;EACT,MAAMgB,aAAa,GAAI,GAAED,YAAa,OAAM;EAC5C,OAAO,CAAC;IACN,CAAE,GAAEA,YAAa,WAAU,GAAGE,MAAM,CAACC,MAAM,CAACD,MAAM,CAACC,MAAM,CAAC,CAAC,CAAC,EAAErB,cAAc,CAACG,KAAK,CAAC,CAAC,EAAE;MACpFE,QAAQ,EAAE,UAAU;MACpBiB,GAAG,EAAE,CAAC,IAAI;MACVC,MAAM,EAAEpB,KAAK,CAACqB,WAAW;MACzBT,SAAS,EAAE,YAAY;MACvBN,OAAO,EAAEN,KAAK,CAACsB,UAAU;MACzBC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